<%--
  Created by IntelliJ IDEA.
  User: lcy
  Date: 17/3/30
  Time: 下午3:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/common/common_home.jsp" %>
<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><sitemesh:write property='title' /></title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    
    
    <link rel="stylesheet" href="${ctx}/common/css/background/amazeui.css"/>
    <link rel="stylesheet" href="${ctx}/common/css/background/admin.css">
    <link rel="stylesheet" href="${ctx}/common/css/background/metro.css">
    

    <script src="${ctx}/common/js/jQuery/jquery.min.js"></script>
    <script src="${ctx}/common/js/background/app.js"></script>
    <link href="${ctx}/common/ui/bootstrap/css/pagination.css" rel="stylesheet">
	<!-- Sweet alert -->
	<link href="${ctx}/common/ui/sweetalert/css/sweetalert.css" rel="stylesheet">
	<script src="${ctx}/common/ui/sweetalert/js/sweetalert.min.js"></script>
	    
	<script src="${ctx}/common/js/jQuery/jquery.validate.min.js"></script>
    <!-- cyUtil -->
	<script src="${ctx}/common/js/util/cyUtil.js"></script>
	
	<script src="${ctx}/common/js/layer/layer.js"></script>
	<script src="${ctx}/common/js/background/common-tools.js"></script>
	<script src="${ctx}/page_resource/background/login/js/back.js"></script>
	
	<script>
	    car_ns.contextPath = "${ctx}";
	   
	</script>
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">升级你的浏览器吧！ <a href="http://se.360.cn/" target="_blank">升级浏览器</a>以获得更好的体验！</p>
<![endif]-->
<header class="am-topbar admin-header">
    <div class='am-topbar-brand'>
        <img src='${ctx}/common/images/background/logo-3.png'>
    </div>
    <div class='am-collapse am-topbar-collapse' id='topbar-collapse'>
        <ul class='am-nav am-nav-pills am-topbar-nav admin-header-list'>
            <li class='am-dropdown tognzhi' data-am-dropdown>
            </li>
            <li class='kuanjie'>
            </li>
            <li class='am-dropdown' data-am-dropdown=''>
                <a class='am-dropdown-toggle' data-am-dropdown-toggle='' href='javascript:;'><span class='am-icon-gear'></span> 系统管理 <span class='am-icon-caret-down'></span></a>
                <ul class='am-dropdown-content'>
                    <li><a href='人员管理.html'><span class='am-icon-edit'></span> 修改密码</a></li>
                    <li><a href='${ctx}/login/exitSystem'><span class='am-icon-power-off'></span> 退出</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <div class='am-cf admin-main'>
        <div class='nav-navicon admin-main admin-sidebar'>
        	<div class='sideMenu' style='color:#aeb2b7; margin: 10px 0 0 0;'> 欢迎系统管理员：ADMIN</div>
            	<div class='sideMenu' id='menuTree'>

                    <c:forEach items="${sessionScope.user.modelList}" var="menu" >
                        <h3 class='am-icon-shopping-cart' id="modelH_${menu.businessId}"><em></em> <a href='#'>${menu.name}</a></h3>
                        <ul id="modelUl_${menu.businessId}">
                            <c:forEach items="${menu.models}" var="childMenu">
                                <li><a href='${ctx}${childMenu.href}?modelId=${childMenu.model}'>${childMenu.name}</a></li>
                            </c:forEach>
                        </ul>
                    </c:forEach>

            <!--<h3 class='am-icon-shopping-cart on'><em></em> <a href='#'>样车管理</a></h3>
            <ul>
                <li><a href='carType'>车型管理</a></li>
                <li><a href='carTypeDatas'>车型数据</a></li>
                <li><a href='costomEntry'>自定义条目</a></li>
                <li><a href='protype'>样车信息</a></li>
            </ul>
            
            <h3 class='am-icon-flag'><em></em> <a href='#'>方案参数管理</a></h3>
            <ul>
            	<li><a href='testPlanList'>方案参数</a></li>
            </ul>
            
            <h3 class='am-icon-flag'><em></em> <a href='#'> 测试方案管理</a></h3><ul>
                <li><a href='testCaseList'>测试方案</a></li>
                <li><a href='testDate'>试验数据</a></li>
            </ul><h3 class='am-icon-yelp'><em></em> <a href=''>客观评价方案管理</a></h3><ul>
                <li><a href='objectiveEvaluationList'>客观评价方案</a></li>
                <li><a href='evalutionDate'>客观评价数据</a></li>
            </ul><h3 class='am-icon-yelp'><em></em> <a href=''>主观评价方案管理</a></h3><ul>
                <li><a href='subjectEvaluationList'>主观评价方案</a></li>
                <li><a href='evalutionDate'>主观评价数据</a></li>
            </ul><h3 class='am-icon-building'><em></em> <a href='#'>NEV数据</a></h3><ul>
                <li><a href='productionList'>产销量数据</a></li>
                <li><a href='cafeAccientList'>安全事故数据</a></li>
                <li><a href=''>政策体系</a></li>
            </ul><h3 class='am-icon-gift'><em></em> <a href='#'>系统管理</a></h3><ul>
                <li><a href='roleList'>角色管理</a></li>
                <li><a href='costomList'>用户管理</a></li>
                <li><a href='deptList'>部门管理</a></li>
            </ul>-->
            	</div>
        </div>
        <div class='admin-content'>
            <div class='daohang'><ul>
                <!--<li><button type='button'  onclick=window.open('index.html') class='am-btn am-btn-default am-radius am-btn-xs'> 首页</button></li>
                <li><button type='button' class='am-btn am-btn-default am-radius am-btn-xs'>帮助中心<a href='javascript: void(0)' class='am-close am-close-spin' data-am-modal-close=''>×</a></button></li>
                <li><button type='button' class='am-btn am-btn-default am-radius am-btn-xs'>奖金管理<a href='javascript: void(0)' class='am-close am-close-spin' data-am-modal-close=''>×</a></button></li>
                <li><button type='button' class='am-btn am-btn-default am-radius am-btn-xs'>产品管理<a href='javascript: void(0)' class='am-close am-close-spin' data-am-modal-close=''>×</a></button></li>
                -->
            </ul></div>
        </div>
</div>
</header>




<sitemesh:write property='body' />


<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/polyfill/rem.min.js"></script>
<script src="assets/js/polyfill/respond.min.js"></script>
<script src="assets/js/amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="${ctx}/common/ui/amazeui/js/amazeui.min.js"></script>
<!--<![endif]-->

<!-- 主菜单特效 -->
<script type="text/javascript">
    jQuery(".sideMenu").slide({
        titCell:"h3", //鼠标触发对象
        targetCell:"ul", //与titCell一一对应，第n个titCell控制第n个targetCell的显示隐藏
        effect:"slideDown", //targetCell下拉效果
        delayTime:300 , //效果时间
        triggerTime:150, //鼠标延迟触发时间（默认150）
        defaultPlay:false,//默认是否执行效果（默认true）
        returnDefault:true //鼠标从.sideMen移走后返回默认状态（默认false）
    });
</script>


<!-- 判断是否为执行结果 返回页面 -->
<script>
    $(function() {
    	function pushState(){
            /**
             * 修改浏览器参数 mf  避免刷新 提示操作成功
             */
            var forwardUrl = "?mf=2";
            var address = window.location.href;
            address = address.substr(address.indexOf("?")+1);
            var arr = address.split("&"); //各个参数放到数组里
            for(var i=0;i < arr.length;i++){
                var num = arr[i].indexOf("=");
                if(num>0){
                    if("mf" != arr[i].substring(0,num)){
                        forwardUrl += "&" + arr[i].substring(0,num) + "="+arr[i].substr(num+1);
                    }
                }
            }
            window.history.pushState('forward', null, forwardUrl);
        }

        //成功
        if("1" == "${messageFlag}"){

            car_ns.operatorAlertSuccess(car_ns.sucMessage);
            /**
             * 修改浏览器参数 mf  避免刷新 提示操作成功
             */
            pushState.call(this);
        }
        //失败
        else if("0" == "${messageFlag}"){

            car_ns.operatorAlertError(car_ns.errMessage);
            pushState.call(this);
        }

        var model = "${param.modelId}";
        //$("#menuTree h3").removeClass("on");
        $("#modelH_"+model).addClass("on");
        $("#modelUl_"+model).show();

    });

</script>


</body>
</html>
